home *** CD-ROM | disk | FTP | other *** search
/ Info-Mac 4 / Info_Mac IV CD-ROM (Pacific HiTech Inc.)(August 1994).iso / Development / Source / Macintosh Tracker Source / Tracker Client Folder / CMyApplication.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-03-23  |  1.7 KB  |  61 lines  |  [TEXT/KAHL]

  1. /* CMyApplication.h */
  2.  
  3. #pragma once
  4.  
  5. #include "CApplication.h"
  6. #include <Aliases.h>
  7.  
  8. #define TRACKERSERVER68020CREATOR ('∫Tsp')
  9. #define FRANKSEIDECREATOR ('∫Tsq')
  10. #define TRACKERSERVER68000CREATOR ('∫Tsr')
  11. #define ROSSETCREATOR ('∫Tss')
  12.  
  13. #define ControlEventClass ('∫Tsp')
  14.  
  15. #define ControlEvent ('∫Ctl')
  16. #define keyKeyPressCharacter ('∫Key')
  17.  
  18. #define ErrorEvent ('∫Err')
  19. #define keyErrorIDNum ('∫Er#')
  20.  
  21. /* modifiers for open event */
  22. #define keyAntiAliasing ('∫Saa')
  23. #define keyStereoOn ('∫Sso')
  24. #define keySamplingRate ('∫Ssr')
  25. #define keyNumRepeats ('∫Snr')
  26. #define keySpeed ('∫Ssp')
  27. #define keyStereoMix ('∫Ssm')
  28. #define keyLoudness ('∫Svl')
  29. #define keyNumBits ('∫Bit')
  30. #define keySenderPSN ('∫Psn')
  31.  
  32.  
  33. #define FatalErrorUnknown (0)
  34. #define FatalErrorOutOfMemory (1)
  35. #define FatalErrorInternalError (2)
  36. #define FatalErrorCantOpenCompressedFiles (3)
  37. #define FatalErrorCouldntOpenFile (4)
  38. #define FatalErrorCouldntCloseFile (5)
  39. #define FatalErrorNotASong (6)
  40. #define FatalError68020NeededID (7)
  41.  
  42.  
  43. /* this is to override anything you want to change about the default application */
  44. struct    CMyApplication    :    CApplication
  45.     {
  46.         /* */            CMyApplication();
  47.         void            InitMenuBar(void);
  48.         void            DispatchOpenDocument(FSSpec* TheFSSpec);
  49.         void            DoMenuOpen(void);
  50.         void            DoMenuNew(void);
  51.         void            EnableMenuItems(void);
  52.  
  53.         void            LaunchTracker(OSType TrackerCreator);
  54.         void            KillPlayer(ProcessSerialNumber PlayerSN);
  55.         void            SendMessage(ProcessSerialNumber PlayerSN, AppleEvent* Message);
  56.         static    pascal    OSErr    MyHandleOBIT(AppleEvent* theAppleEvent,
  57.                                 AppleEvent* reply, long handlerRefcon);
  58.         static    pascal    OSErr    MyHandleERROR(AppleEvent* theAppleEvent,
  59.                                 AppleEvent* reply, long handlerRefcon);
  60.     };
  61.